<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022/7/27 0027
 * Time: 17:32
 */

namespace framework\library;


class Facade
{

    // 创建门面
    public static function createFacade()
    {
        $class = static::getFacade();
        return new $class();
    }

    public static function __callStatic($name, $params)
    {
        return call_user_func_array([static::createFacade(), $name], $params);
    }

}